home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0224.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  1.6 KB  |  32 lines

  1. To the one known as Rune,
  2. > On 23-Jun-97, Keith Hill wrote:
  3. > >Yeah, good point.  Now, if I'm stripping out every unnecessary bit of code
  4. > >to help the slower machines, how can I get it running sensibly on faster
  5. > >machines without slowing it down too much ??
  6. > To solve the problem you could check the speed of the machine in the beginning
  7. > of the game and according to this value change the speed of the monsters.
  8. > On the other hand; this would still not make the game run the same speed on
  9. > all computers. I guess the best would be if you could make the main game loop
  10. > (where is the monsters, the hero?) run exactly 50fps on any computer and then
  11. > make the slow operations (drawing onto the screen, I presume) run in less than
  12. > this according to the speed of the computer. Get it?
  13.  
  14. Hmmm.  This will screw up the timings with the way its written.  I'm
  15. currently expecting it to run at 25fps or 16 when firing, on my machine, but
  16. I'll be able to test it on a faster machine when I eventually get paid.  
  17.  
  18. > Has anybody else solved this problem in a better way?
  19.  
  20. I can see myself writing two main control routines..  One for any machine
  21. that can do >25fps.  LET ME KNOW if your machine can manage 50fps, and the
  22. setup you're using, and I'll patch it into the fast routine.  I suppose I
  23. could just slow it down...
  24.  
  25.  _   _   _        _     _   _     |  "Given that God is infinate, 
  26. |_> |_| |_| |\ | |_ |  | | /   |  |   and the universe is infinate,
  27. |_> | \ | | | \| |_ |_ |_| \_  .  |   would you like a toasted tea cake ?"
  28.                                   |  
  29.                     --------------+---------------
  30.                      http://www.mirex.demon.co.uk
  31.  
  32.